'use strict'

const Controller = require('egg').Controller
const mongo = require('../utils/mongo')

class ProjectController extends Controller {
  async index() {
    const { ctx } = this

    // const data = await mongo().query('project');
    // ctx.body = data;
    
    ctx.body = [
      {"name":"vue3标准模板","npmName":"white-cloud-cli-template-vue3","version":"1.0.0"},
      {"name":"vue-element-admin","npmName":"white-cloud-cli-template-vue-element-admin","version":"1.0.0"}
    ]
  }

}

module.exports = ProjectController;
